package cn.stylefeng.guns.modular.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 入库表
 * </p>
 *
 * @author 小飞
 * @since 2019-06-26
 */
@TableName("put_in_warehouse")
public class PutInWarehouse implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 关联产品id
     */
    @TableField("product_id")
    private Long productId;

    /**
     * 批次
     */
    @TableField("batch_number")
    private String batchNumber;

    /**
     * 仓库id
     */
    @TableField("warehouse_id")
    private Long warehouseId;

    /**
     * 序列号
     */
    @TableField("serial_num")
    private String serialNum;

    /**
     * 操作人
     */
    @TableField("operator")
    private String operator;

    /**
     * 操作人部门
     */
    @TableField("operator_dept")
    private String operatorDept;

    /**
     * 入库时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 产品型号id
     */
    @TableField("product_model_id")
    private Long productModelId;

    /**
     * 产品编号id
     */
    @TableField("product_order_id")
    private Long productOrderId;

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    /**
     * 数量
     */
    @TableField("amount")
    private Long amount;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    /*
          入库状态
         */
    @TableField("code")
    private Integer code;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getBatchNumber() {
        return batchNumber;
    }

    public void setBatchNumber(String batchNumber) {
        this.batchNumber = batchNumber;
    }

    public Long getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
    }

    public String getSerialNum() {
        return serialNum;
    }

    public void setSerialNum(String serialNum) {
        this.serialNum = serialNum;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getOperatorDept() {
        return operatorDept;
    }

    public void setOperatorDept(String operatorDept) {
        this.operatorDept = operatorDept;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getProductModelId() {
        return productModelId;
    }

    public void setProductModelId(Long productModelId) {
        this.productModelId = productModelId;
    }

    public Long getProductOrderId() {
        return productOrderId;
    }

    public void setProductOrderId(Long productOrderId) {
        this.productOrderId = productOrderId;
    }

    @Override
    public String toString() {
        return "PutInWarehouse{" +
        "id=" + id +
        ", productId=" + productId +
        ", batchNumber=" + batchNumber +
        ", warehouseId=" + warehouseId +
        ", serialNum=" + serialNum +
        ", operator=" + operator +
        ", operatorDept=" + operatorDept +
        ", createTime=" + createTime +
        ", productModelId=" + productModelId +
        ", productOrderId=" + productOrderId +
        "}";
    }
}
